<?php
	function singcrets_sharethis($atts) {
		// if(empty($atts)) return;
		ob_start();
		$facebook_url = '<a class="facebook" target="_blank" href="http://www.facebook.com/sharer.php?u=%s&t=%s" title="Share on Facebook.">%s</a>';
		$twitter_url = '<a class="twitter" target="_blank" href="http://twitter.com/home/?status=%s - %s" title="Tweet this!">%s</a>';
		
		print '<span id="social-share">';
		print '		<span>Share this: </span>';
		print 		sprintf($facebook_url, esc_url(get_permalink()), get_the_title(), '');
		print 		sprintf($twitter_url,  get_the_title(), esc_url(get_permalink()), '');
		print '</span>';
		return ob_get_clean();
	}
	
	add_shortcode('sharethis', 'singcrets_sharethis');
?>